/* 
 * File:   RingBuffer.h
 * Author: frank
 *
 * Created on November 23, 2014, 11:51 AM
 */

#ifndef RINGBUFFER_H
#define	RINGBUFFER_H

#include <stdbool.h>

#define BUFFER_SIZE 16  // Size user wants

// True if added, False if over run.
bool AddToBuffer(unsigned char data);
// Get oldest data in buffer.  Returns 0 if empty
unsigned char GetOldest();
// Returns number of valid items in buffer.
int Available();

#endif	

